<?php

namespace App\Clients\JinShouFu;

use GuzzleHttp\Exception\GuzzleException;
use phpQuery;

class StoreIncome extends JinShouFuClient
{
    protected $isJson = false;

    public function handleData(): void
    {
        $html = phpQuery::newDocument($this->contents);
        $data = [
            "income"=>$html->find(".f-accent:eq(2)")->text()
        ];
        $this->contents = $data;
    }


    /**
     * @throws GuzzleException
     */
    public function execute($queryData): StoreIncome
    {
        return $this->get("https://www.jsfpay.com/orderflow/orderflowlistSale.do",$queryData);
    }
}
